package com.lepai.component;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.stereotype.Component;

import java.util.Optional;

/**
 * @author weihaolong
 * @date 2018-12-04 14:36
 * @description
 */
@Component
public class XmlInitializationBean {

    Logger logger = LogManager.getLogger();

    private AnnotationInitializationBean annotationInitializationBean;

    @Autowired(required = false)
    public void setAnnotationInitializationBean(AnnotationInitializationBean annotationInitializationBean){
        this.annotationInitializationBean = annotationInitializationBean;
    }

    public void initMethod(){
        //ceshi1asdasda
        logger.info("initializationBean initMethod");
    }

    public void destroyMethod(){
        logger.info("initializationBean destroyMethod");
    }

}
